package com.pm2.entity.travelExpense;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name="db_pm2_travel_expense_detail")
@DynamicUpdate
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TravelExpenseDetail {

	// @Fields id : 项目主键
	@Id @Column(name="id")
	@GeneratedValue(strategy=GenerationType.AUTO)
	int id;	 
	
	int pid;
	
	Date start_date;
	
	Date end_date;
	
	String start_addr;
	
	String end_addr;
	
	String vehicle;
	
	int invoice_numb;
	
	float travel_carfare; 
	
	int inside_city_invoice_numb;
	
	float inside_city_carfare;
	
	String work_item;
	
	String note;
}
